Mapopolis: strdup->xstrdup.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 20 Feb 2006 20:04:49 +0000 (20:04 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 20 Feb 2006 20:04:49 +0000 (20:04 +0000)
gpsbabel/mapopolis.c

index 4119030ec5e35c99159478fda2284aa2b32acbfc..2be3bbb1024c66a2e175d0185855f1a526ee8248 100644 (file)
@@ -164,13 +164,13 @@ decode(char *buf)
                                be_read16(&rec->lon1d) / LONDIV2; 
 
                        vdata = (char *) rec + sizeof(*rec);
-                       wpt_tmp->description = strdup(vdata);
+                       wpt_tmp->description = xstrdup(vdata);
                        vdata += strlen(wpt_tmp->description) + 1 + 6;
 
                        while (*vdata == 0x40)
                                vdata++;
                        decode(vdata);
-                       wpt_tmp->notes = strdup(vdata);
+                       wpt_tmp->notes = xstrdup(vdata);
                        vdata += strlen(wpt_tmp->notes) + 1;
 
                        waypt_add(wpt_tmp);